export default class Message {
    constructor (code, message = '', data = {}) {
        this.code = code
        this.message = message
        this.data = data
    }
    set_user ( userid ) {
        this.userid = userid
    }
    to_json () {
        return JSON.stringify(this)
    }
}